package cn.gd.mapper.LeaveApplicationMapper;


import cn.gd.logging.RecordLog;
import cn.gd.pojo.LeaveAppLiCations;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface LeaveApplicationMapper {
    // 查询所有请假申请
    @RecordLog(desc = "查询所有请假申请")
    List<LeaveAppLiCations> findAll();
    // 根据ID查询请假申请
    @RecordLog(desc = "根据ID查询请假申请")
    LeaveAppLiCations findById(Integer applicationId);
    // 插入请假申请
    @RecordLog(desc = "插入请假申请")
    int insert(LeaveAppLiCations leaveApplication);
    // 更新请假申请
    @RecordLog(desc = "更新请假申请")
    int update(LeaveAppLiCations leaveApplication);
    // 删除请假申请
    @RecordLog(desc = "删除请假申请")
    int deleteById(Integer applicationId);
}
